FROM mamohr/centos-java:latest
VOLUME /tmp
ARG JAR_FILE
ADD ${JAR_FILE} microservice-item.jar
RUN bash -c 'touch /microservice-item.jar'
RUN rm -rf /etc/localtime && ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /microservice-item.jar/microservice-item.jar" ]
